using System;
using System.IO;
using System.Xml.Serialization;
using System.Collections.Specialized;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;


namespace Common
{
    /// <summary>Instance of a word<summary>

    public class Word
    {
        public string Text;
        public Word(string text)
        {
            Text = text;
        }

        public override int GetHashCode()
        {
            return Text.GetHashCode();
        }

        public override bool Equals(Object obj)
        {
            //Check for null and compare run-time types.
            if (obj == null || GetType() != obj.GetType()) return false;
            Word word = obj as Word;
            return word.Text == Text;
        }
		public override string ToString()
		{
			return Text;
		}

    }
}
